import request from '@/api/request.js'


const api_name = 'ReportformsURL'

export default {
    //添加一个Reportforms
    insert(Reportforms) {
        return request({
            url: `/${api_name}/addReportForms`,
            method: 'post',
            data: Reportforms
        })
    },
    GetReportFormsHistory(ReportformsDto){
        return request({
            url: `/${api_name}/GetReportFormsHistory`,
            method: 'post',
            data: ReportformsDto
        })
    },
    //获取上级需要审批的列表
    GetsuperiorAplyReportForms(ReportformsDto){
        return request({
            url: `/${api_name}/superiorAplyReportForms`,
            method: 'post',
            data: ReportformsDto
        })
    },
    //上级审批操作
    superiorApprovalReportForms(ReportformsDto){
        return request({
            url: `/${api_name}/superiorApprovalReportForms`,
            method: 'post',
            data: ReportformsDto
        })
    },
    //获取当前用户接受到的所有通知信息
    getReportForms(ReportformsDto){

        return request({
            url: `/${api_name}/getReportForms`,
            method: 'post',
            data: ReportformsDto
        })
    },
    //师军查看下属发布的所有通知公告
    getAllReportForms(ReportformsDto){
        return request({
            url: `/${api_name}/getAllReportForms`,
            method: 'post',
            data: ReportformsDto
        })
    }
}
